package site.thatime.hyts.web.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import site.thatime.hyts.model.Result;
import site.thatime.hyts.service.PdaProviderService;

@RestController
@RequestMapping("/provider")
public class ProviderController {
	@Resource
	private PdaProviderService pdaProviderService;

	@RequestMapping(path = "/download", method = RequestMethod.GET)
	public Result download() {
		return new Result(true).setData(pdaProviderService.getAll());
	}
}
